Optimal. Leaf size=107 \[ \frac{b n \text{PolyLog}\left (2,-\frac{e x}{d}\right )}{e^3}-\frac{x \left (2 a+2 b \log \left (c x^n\right )+b n\right )}{2 e^2 (d+e x)}+\frac{\log \left (\frac{e x}{d}+1\right ) \left (2 a+2 b \log \left (c x^n\right )+3 b n\right )}{2 e^3}-\frac{x^2 \left (a+b \log \left (c x^n\right )\right )}{2 e (d+e x)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.182732, antiderivative size = 132, normalized size of antiderivative = 1.23, number of steps used = 9, number of rules used = 8, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.381, Rules used = {43, 2351, 2319, 44, 2314, 31, 2317, 2391} \[ \frac{b n \text{PolyLog}\left (2,-\frac{e x}{d}\right )}{e^3}-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{2 e^3 (d+e x)^2}-\frac{2 x \left (a+b \log \left (c x^n\right )\right )}{e^2 (d+e x)}+\frac{\log \left (\frac{e x}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{e^3}+\frac{b d n}{2 e^3 (d+e x)}+\frac{3 b n \log (d+e x)}{2 e^3}+\frac{b n \log (x)}{2 e^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2351
Rule 2319
Rule 44
Rule 2314
Rule 31
Rule 2317
Rule 2391
Rubi steps
\begin{align*} \int \frac{x^2 \left (a+b \log \left (c x^n\right )\right )}{(d+e x)^3} \, dx &=\int \left (\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{e^2 (d+e x)^3}-\frac{2 d \left (a+b \log \left (c x^n\right )\right )}{e^2 (d+e x)^2}+\frac{a+b \log \left (c x^n\right )}{e^2 (d+e x)}\right ) \, dx\\ &=\frac{\int \frac{a+b \log \left (c x^n\right )}{d+e x} \, dx}{e^2}-\frac{(2 d) \int \frac{a+b \log \left (c x^n\right )}{(d+e x)^2} \, dx}{e^2}+\frac{d^2 \int \frac{a+b \log \left (c x^n\right )}{(d+e x)^3} \, dx}{e^2}\\ &=-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{2 e^3 (d+e x)^2}-\frac{2 x \left (a+b \log \left (c x^n\right )\right )}{e^2 (d+e x)}+\frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x}{d}\right )}{e^3}-\frac{(b n) \int \frac{\log \left (1+\frac{e x}{d}\right )}{x} \, dx}{e^3}+\frac{\left (b d^2 n\right ) \int \frac{1}{x (d+e x)^2} \, dx}{2 e^3}+\frac{(2 b n) \int \frac{1}{d+e x} \, dx}{e^2}\\ &=-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{2 e^3 (d+e x)^2}-\frac{2 x \left (a+b \log \left (c x^n\right )\right )}{e^2 (d+e x)}+\frac{2 b n \log (d+e x)}{e^3}+\frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x}{d}\right )}{e^3}+\frac{b n \text{Li}_2\left (-\frac{e x}{d}\right )}{e^3}+\frac{\left (b d^2 n\right ) \int \left (\frac{1}{d^2 x}-\frac{e}{d (d+e x)^2}-\frac{e}{d^2 (d+e x)}\right ) \, dx}{2 e^3}\\ &=\frac{b d n}{2 e^3 (d+e x)}+\frac{b n \log (x)}{2 e^3}-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{2 e^3 (d+e x)^2}-\frac{2 x \left (a+b \log \left (c x^n\right )\right )}{e^2 (d+e x)}+\frac{3 b n \log (d+e x)}{2 e^3}+\frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x}{d}\right )}{e^3}+\frac{b n \text{Li}_2\left (-\frac{e x}{d}\right )}{e^3}\\ \end{align*}
Mathematica [A] time = 0.109, size = 122, normalized size = 1.14 \[ \frac{2 b n \text{PolyLog}\left (2,-\frac{e x}{d}\right )-\frac{d^2 \left (a+b \log \left (c x^n\right )\right )}{(d+e x)^2}+\frac{4 d \left (a+b \log \left (c x^n\right )\right )}{d+e x}+2 \log \left (\frac{e x}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )-4 b n (\log (x)-\log (d+e x))+b n \left (\frac{d}{d+e x}-\log (d+e x)+\log (x)\right )}{2 e^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.148, size = 596, normalized size = 5.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{1}{2} \, a{\left (\frac{4 \, d e x + 3 \, d^{2}}{e^{5} x^{2} + 2 \, d e^{4} x + d^{2} e^{3}} + \frac{2 \, \log \left (e x + d\right )}{e^{3}}\right )} + b \int \frac{x^{2} \log \left (c\right ) + x^{2} \log \left (x^{n}\right )}{e^{3} x^{3} + 3 \, d e^{2} x^{2} + 3 \, d^{2} e x + d^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b x^{2} \log \left (c x^{n}\right ) + a x^{2}}{e^{3} x^{3} + 3 \, d e^{2} x^{2} + 3 \, d^{2} e x + d^{3}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 49.5046, size = 328, normalized size = 3.07 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left (c x^{n}\right ) + a\right )} x^{2}}{{\left (e x + d\right )}^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]